<extend name="Layout/dialog" />
<block name="css"></block>
<block name="style"></block>
<block name="js"></block>
<block name="script"></block>
<block name="model">基础设置</block>
<block name="controller">二维码生成</block>
<block name="action">二维码生成</block>
<block name="desc"></block>
<block name="content">
<div class="box box-success">
	<div class="box-header with-border">
		<h3 class="box-title">业务信息修改</h3>
	</div>
	<form class="form-horizontal" action="{:U('save')}" method="post" rel-action="form" rel-success="reload()">
	<div class="box-body">
		<input type="hidden" class="form-control" name="id" value="{$data.qrcode_id}">
		<div class="form-group">
			<label class="col-sm-2 control-label">名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="name" placeholder="请输入名称" value="{$data.qrcode_name}" autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>店铺编号</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="storecode" placeholder="请输入店铺编号,例：346210001" value="{$data.qrcode_storecode}" autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>店铺名称</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="storename"  placeholder="请输入店铺名称" value="{$data.qrcode_storename}"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red">*</span>业务员姓名</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="username" placeholder="请输入业务员姓名,例：yewuyuan" value="{$data.qrcode_username}" autocomplete="off">
			</div>
		</div>	
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>贷款类型</label>
			<div class="col-sm-10">
				<select class="form-control" rel-action="select" name="loantype">
					<option value="">请选择贷款类型</option>
					<volist name="loan_type" id="item">
						<if condition="$key == $data['qrcode_loantype']">
							<option value="{$key}" selected>{$item}</option>
						<else />
							<option value="{$key}">{$item}</option>
						</if>
					</volist>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>商品类型</label>
			<div class="col-sm-10">
				<select class="form-control" rel-action="select" name="commoditytype">
					<option value>请选择商品类型</option>
					<volist name="commodity_type" id="item">
						<if condition="$key == $data['qrcode_commoditytype']">
							<option value="{$key}" selected='selected'>{$item}</option>
						<else />
							<option value="{$key}">{$item}</option>
						</if>
					</volist>
				</select>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>商品品牌</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="commoditybrand" placeholder="请输入商品品牌" value="{$data.qrcode_commoditybrand}"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>商品型号</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="commoditymodel" placeholder="请输入商品型号" value="{$data.qrcode_commoditymodel}"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>商品价格</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="commodityprice" placeholder="请输入商品价格" value="{$data.qrcode_commodityprice}"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label"><span class="text-red"></span>首付值</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" name="downpayment" placeholder="请输入首付值" value="{$data.qrcode_downpayment}"  autocomplete="off">
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-2 control-label">状态</label>
			<div class="col-sm-10 radio">
				<label>
					<if condition="$data.qrcode_status == 1">
						<input type="radio" name="status" value="1" checked="checked">正常
					<else />
						<input type="radio" name="status" value="1">正常
					</if>
				</label>
				<label>
					<if condition="$data.qrcode_status == 0">
						<input type="radio" name="status" value="0" checked="checked">锁定
					<else />
						<input type="radio" name="status" value="0">锁定
					</if>
				</label>
			</div>
		</div>
	</div>
	<div class="box-footer">
		<div class="col-sm-offset-2 col-sm-10">
			<button type="submit" class="btn btn-default">保存</button>
			<button type="button" class="btn btn-default" rel-action="dialog-close">关闭</button>
		</div>
	</div>
	</form>
</div>
</block>